<!--menu starts!-->
<?php 
	include_once 'cls_user.php';
	include_once 'forms.php';
	#this will check session id
	if($_SESSION['profileid']==""){
		$profile_id = "x";
	}else{
		$profile_id = $_SESSION['profileid'];
	}
?>

<div class="art-nav">
	<div class="art-nav-l"></div>
	<div class="art-nav-r"></div>
<div class="art-nav-outer">
	<ul class="art-hmenu">
	<?php 
	?>
			<li><a href="index.php" class="active"><span class="l"></span><span class="r"></span><span class="t">HOME</span></a></li>
			<!--for jws_ofc only!-->
			<?php
				if(cls_user_get::bool_priv_action($profile_id)=="2"){ //grant action for jws_ofc only
					?>
			<li>
			<a href="#" class="active"><span class="l"></span><span class="r"></span><span class="t">Billing</span></a>
				<ul>
					<li><a href="#">Create Billing</a>
						<ul>
							<li><a href="billing.php?request=accnt">Individual Billing</a></li>
							<li><a href="#">Batch Billing</a></li>
						</ul>
					</li>
					<li><a href="billing.php?request=dl_bill">Download Billing</a></li>
					<li><a href="#">Meter Reading</a>
						<ul>
							<?php //todo: [start] stage for commit to remote PS (status: uploaded) ?>
							<li><a href="billing.php?custom=CreateReadingSheet">Create Meter Reading Sheet</a></li>
							<?php //todo: [end] stage for commit to remote PS (status: uploaded) ?>
							<li><a href="#">View Reading Sheet Created</a></li>
						</ul>
					</li>
				</ul>
			</li>    
			<li><a href="#" class="active"><span class="l"></span><span class="r"></span><span class="t">LEDGER</span></a>	
			<ul>
				<li><a href="ledger_content.php?action=new">New</a></li>
				<li><a href="ledger_content.php?action=search">Search</a></li>
				<li><a href="ledger_content.php">Update</a></li>
				<li><a href="ledger_content.php?action=delete">Delete</a></li>
			</ul>
			</li>
			<li><a href="#" class="active"><span class="l"></span><span class="r"></span><span class="t">Disconnection</span></a>    
			<ul>
				<li><a href="">Statistics</a></li>
				<li><a href="">ALL Notices</a></li>
				<li><a href="">Notices Per Barangay</a></li>
			</ul>
		</li>    
<?php //TODO: [END]stage for commit to PS ?>
			<?php } ?>
			
		<?php
			if(cls_user_get::bool_priv_action($profile_id)=="2"){ //grant action for cashier only
				?>
				<li>
					<a href="cashier.php" class="active"><span class="l"></span><span class="r"></span><span class="t">Cashier</span></a>
				</li>                
		<?php } ?>	
		<!--administrative page only!-->
		<?php  if(cls_user_get::bool_priv_action($profile_id)=="1"){?>
		<li><a href="#" class="active"><span class="l"></span><span class="r"></span><span class="t">Account</span></a>
			<ul>
				<li><a href="#" class="active"><span class="l"></span><span class="r"></span><span class="t">Users</span></a>
					<ul>
						<li><a href="admin.php?req=add">Add</a></li>
						<li><a href="admin.php?req=view">View</a></li>
					</ul>
				</li>
			</ul>
		</li>
		<?php }?>	
		
					<!--for accounting only!-->
			<?php
				if(cls_user_get::bool_priv_action($profile_id)=="4"){ //grant action for accounting only
					?>
		<li>
			<a href=""><span class="l"></span><span class="r"></span><span class="t">REPORTS</span></a>
			<ul>
				<li><a href="listings_content.php?action=receive_receipt">Receivables & Receipts</a></li>
			<!-- 	<li><a href="listings_content.php?action=billings">Process Billings</a></li> -->
				<li><a href="listings_content.php?action=list_profile">Profile & Ledger Status</a></li>
				<li><a href="listings_content.php?action=names_barangay">Names Per Barangay</a></li>
				<li><a href="listings_content.php?action=graph_report">Represent Graph</a></li>  
			</ul>	
		</li>
			<?php } ?>		
		<li><a href="user_manual/index.htm" class="active" target="_blank"><span class="l"></span><span class="r"></span><span class="t">HELP</span></a></li>		
	</ul>
</div>
</div>
<div class="cleared reset-box"></div>